#include <cstdio>


typedef unsigned int uint;


inline uint carry_operations (uint na, uint nb)
{
	uint r, c, a, b;

	r = c = 0;
	for (; na > 0 || nb > 0; na /= 10, nb /= 10)
	{
		a = na % 10;
		b = nb % 10;
		c = (a + b + c) / 10;
		r += c;
	}

	return r;
}


int main ()
{
	uint a, b, c;

	while (scanf("%u %u", &a, &b), a > 0 || b > 0)
	{
		c = carry_operations (a, b);
		switch (c)
		{
			case 0:
			{
				puts ("No carry operation.");
				break;
			}

			case 1:
			{
				puts ("1 carry operation.");
				break;
			}

			default:
			{
				printf("%u carry operations.\n", c);
			}
		}
	}

	return 0;
}